#include <stdio.h>
#define N 1
/*int getSum(int n){
 int sum=0;
 for(int i=1;i<=n;i++){
 if(i%2==0) sum=sum+i;
 }
 for(int i=2;i<=n;i=i+2){
 sum=sum+i;
 }
 
 return sum;
 }*/
int getSum(int n,int m){
    int sum=0;
    for(int i=1;i<=n;i++){
        if(i%m==0) sum=sum+i;
        
    }
    return sum;
    
    
}
void f1(){
    struct Score{
        char no[10];
        char name[20];
        int english;
        int chinese;
        int maths;
        int c;
    }s1={"10","zhongjiwang",100,100,100,100};
    
    /* printf("");
     scanf("%s",s[N].name,"%s",s[N].no,"%d",&s[N].english,"%d",&s[N].chinese,"%d",&s[N].maths,"%d",&s[N].c);
     */
    printf("学号:%s\n姓名:%s\n英语:%d\n语文:%d\n数学:%d\nc语言:%d\n",s1.no,s1.name,s1.english,s1.chinese,s1.maths,s1.c);
}
void f2();
int main(){
    //printf("%d\n",getSum(200));
    // printf("%d\n",getSum(100,5));
    //f1();
    f2();
}
void f2(){
    struct Date{
        int year;
        int month;
        int day;
    };
    struct Salary{
        char id[10];
        char name[20];
        struct Date borth;
        char sex[2];
        int salary;
        char telephone[12];
        //char qq[10];
        //
    }s1;//={"1008611","huang",{1995,6,11},'M',9999,"110120119"};
    printf("请输入工号，姓名，生日，性别，工资，电话\n");
    scanf("%s%s%d%d%d%s%d%s",s1.id,s1.name,&s1.borth.year,&s1.borth.month,&s1.borth.day,s1.sex,&s1.salary,s1.telephone);
    printf("工号:%s\n姓名:%s\n生日:%d-%d-%d\n性别:%s\n工资:%d\n电话:%s\n",s1.id,s1.name,s1.borth.year,s1.borth.month,s1.borth.day,s1.sex,s1.salary,s1.telephone);
};#include <stdio.h>
#define N 1
/*int getSum(int n){
 int sum=0;
 for(int i=1;i<=n;i++){
 if(i%2==0) sum=sum+i;
 }
 for(int i=2;i<=n;i=i+2){
 sum=sum+i;
 }
 
 return sum;
 }*/
int getSum(int n,int m){
    int sum=0;
    for(int i=1;i<=n;i++){
        if(i%m==0) sum=sum+i;
        
    }
    return sum;
    
    
}
void f1(){
    struct Score{
        char no[10];
        char name[20];
        int english;
        int chinese;
        int maths;
        int c;
    }s1={"10","zhongjiwang",100,100,100,100};
    
    /* printf("");
     scanf("%s",s[N].name,"%s",s[N].no,"%d",&s[N].english,"%d",&s[N].chinese,"%d",&s[N].maths,"%d",&s[N].c);
     */
    printf("学号:%s\n姓名:%s\n英语:%d\n语文:%d\n数学:%d\nc语言:%d\n",s1.no,s1.name,s1.english,s1.chinese,s1.maths,s1.c);
}
/*void f2();
int main(){
    //printf("%d\n",getSum(200));
    // printf("%d\n",getSum(100,5));
    //f1();
    f2();
}
void f2(){
    struct Date{
        int year;
        int month;
        int day;
    };
    struct Salary{
        char id[10];
        char name[20];
        struct Date borth;
        char sex[2];
        int salary;
        char telephone[12];
        //char qq[10];
        //
    }s1;//={"1008611","huang",{1995,6,11},'M',9999,"110120119"};
    printf("请输入工号，姓名，生日，性别，工资，电话\n");
    scanf("%s%s%d%d%d%s%d%s",s1.id,s1.name,&s1.borth.year,&s1.borth.month,&s1.borth.day,s1.sex,&s1.salary,s1.telephone);
    printf("工号:%s\n姓名:%s\n生日:%d-%d-%d\n性别:%s\n工资:%d\n电话:%s\n",s1.id,s1.name,s1.borth.year,s1.borth.month,s1.borth.day,s1.sex,s1.salary,s1.telephone);
};*/

